package ex19;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	
	public static void main(String[] args) throws IOException {
		
		InputStreamReader it = new InputStreamReader(System.in);
		BufferedReader in = new BufferedReader(it);
		
		int n, second, minute, hour;

		n = Integer.parseInt(in.readLine());
		hour = n / 3600;
		n = n % 3600;
		minute = n / 60;
		n = n % 60;
		second = n % 60;
		
		System.out.printf("%d:%d:%d\n", hour, minute, second);
	}

}
